package cn.tedu.csmall.passport.mapper;

import cn.tedu.csmall.passport.pojo.entity.AdminRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AdminRoleMapper extends BaseMapper<AdminRole> {
    int insertBatch(AdminRole[] adminRoles);

    int deleteByAdminId(Long id);

    Long[] selectRoleId(Long id);

    List<Long> selectRoleIdByAdminId(Long id);

    int insertListRoleIds(List<AdminRole> list);

    int deleteByAdminIdAndRoleIds(Long adminId,List<Long> list);
}
